package com.asura.ops.sync.check.server.controller;

import com.asura.ops.sync.check.server.entity.res.ResponseBase;
import com.asura.ops.sync.check.server.req.CheckDataReq;
import com.asura.ops.sync.check.server.service.ManageService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: zouyang
 * @date: 2022/8/2
 * @description: 测试controller
 */
@RestController
@RequestMapping("/manage")
@Slf4j
@Api(value = "ManageController", tags = "管理端接口")
public class ManageController {

    @Resource
    private ManageService manageService;

    @PostMapping("/checkData")
    public ResponseBase checkData(@RequestBody CheckDataReq checkDataReq) throws Exception {

        manageService.checkData(checkDataReq);

        return ResponseBase.success();
    }

}
